//
//  MarcoDefine.swift
//  Swift_01of30
//
//  Created by licheng ke on 2017/2/27.
//  Copyright © 2017年 licheng ke. All rights reserved.
//

import Foundation
import UIKit

let SCREEN_H : CGFloat = UIScreen.main.bounds.height
let SCREEN_W : CGFloat = UIScreen.main.bounds.width

func g_ViewX(view : UIView) -> CGFloat {
    return view.frame.origin.x
}

func g_ViewY(view : UIView) -> CGFloat {
    return view.frame.origin.y
}

func g_ViewW(view : UIView) -> CGFloat {
    return view.frame.size.width
}

func g_ViewH(view : UIView) -> CGFloat {
    return view.frame.size.height
}

func g_ViewC(view : UIView) -> CGPoint {
    return view.frame.origin
}

func g_getProjectName() -> String {
    return Bundle.main.infoDictionary!["CFBundleName"] as! String;
}




